using System.Data;
using Spring.Data.Core;

namespace Spring.Data;

public class AccountDebitDao : AdoDaoSupport, IAccountDebitDao
{
    public AccountDebitDao()
    {
    }

    public void DebitAccount(float debitAmount)
    {
        AdoTemplate.ExecuteNonQuery(CommandType.Text, String.Format("insert into dbo.Debits (DebitAmount) VALUES ({0})",
            debitAmount));
    }
}
